home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-03-08 | 2.1 KB | 87 lines |
- # Makefile for GNU Awk (for use with Archimedes ANSI C V3.0)
- #
- # Rewritten by Paul Moore, January 1990.
- #
- # Copyright (C) 1986, 1988, 1989 the Free Software Foundation, Inc.
- #
- # This file is part of GAWK, the GNU implementation of the
- # AWK Progamming Language.
- #
- # GAWK is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 1, or (at your option)
- # any later version.
- #
- # GAWK is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with GAWK; see the file COPYING. If not, write to
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- # CFLAGS: options to the C compiler
- #
- # -w don't bother about warning messages
- #
-
- CFLAGS= -w
-
- SRC = C.Array C.AwkTab C.Builtin C.Debug C.Eval \
- C.Field C.Io C.Main C.Msg C.Node C.Regex \
- C.Version
-
- AWKOBJS = O.Array O.AwkTab O.Builtin O.Debug O.Eval \
- O.Field O.Io O.Main O.Msg O.Node O.Regex \
- O.Version
-
- # Parser to use on grammar -- if you don't have bison use the first one
- # y.awk not converted yet! Use supplied c.awk_tab
- #PARSER = yacc
- #PARSOUT= ytab.c
- #PARSER = bison -y
- #PARSOUT= y_tab.c
- #PARSFLAGS=-v
-
- # LIBS
- # Standard object code libraries to use
- LIBS = Lib:Stubs.o Lib:Utils.o
-
- # BIN
- # Place to install the compiled code
- BIN = adfs::HardDisc4.$$.Library.Gnu
-
- # Phony (ie utility) targets
-
- .PHONY: all install clean clobber
-
- all: !RunImage
-
- install: !RunImage
- Copy !RunImage $(BIN).Gawk FQ~C~V
- Access $(BIN).Gawk R
-
- clean:
- $(dolines i,$(AWKOBJS),remove $i)
-
- clobber: clean
- remove !RunImage
-
- # OK - this is the major target!
-
- !RunImage: $(AWKOBJS)
- link -o !RunImage $(LINKFLAGS) $(AWKOBJS) $(LIBS)
- squeeze !RunImage
-
- # Now for the various dependencies
-
- $(AWKOBJS): H.Awk
-
- # Not just yet...
- #
- #c.awk_tab: y.awk
- # @-del awk_tab.c
- # $(PARSER) $(PARSFLAGS) awk.y
- # -rename $(PARSOUT) awk_tab.c
-